package com.shanghaionstar.report.bean;

/**
 * Created by 6335yz on 2016/11/14.
 */
public class PoiLocationDTO {
    private double longitude;
    private double latitude;

    public PoiLocationDTO(double longitude, double latitude) {
        this.longitude = longitude;
        this.latitude = latitude;
    }

    public static class PoiLocationDTOBuilder {
        private double longitude;

        private double latitude;

        public PoiLocationDTOBuilder longitude(double longitude) {
            this.longitude = longitude;
            return this;
        }

        public PoiLocationDTOBuilder latitude(double latitude) {
            this.latitude = latitude;
            return this;
        }


        public PoiLocationDTO createPoiLocationDTO() {
            return new PoiLocationDTO(longitude, latitude);
        }
    }
}
